package demo.core.runtime.extension;

import org.osgi.framework.Bundle;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public abstract class AbstractActivator implements BundleActivator {
	protected Context extendContext=null;

	@Override
	public void start(BundleContext context) throws Exception {
		extendContext=new Context(context);
		start(extendContext);
	}

	@Override
	public void stop(BundleContext context) throws Exception {
		stop(extendContext);
	}
	
	public abstract void start(Context context) throws Exception;
	public abstract void stop(Context context) throws Exception;
}
